Release 10.1A: OpenEdge Development:
Programming Interfaces
Using shared record buffers with aliases
Be careful when using shared buffers with aliases. If you reference a shared buffer after changing the alias that initially was used in defining it, a run-time error results:
In this example, procedure
i-main2.pcallsi-makebuf.p, which in turn callsi-disp.p. The aliasmyaliasis created inmain.p, with reference to database sports1. Ini-makebuf.p, the shared buffermybufis defined for the table myalias.customer. Then, in the next line,myaliasis changed, so that it now refers to database sports2. When an attempt is made to reference shared buffermybufin procedurei-disp.p, a run-time error occurs, with the message “i-disp.p unable to find shared buffer for mybuf.”
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |